import Config from '../../config/config'
import { DefaultDataModel } from '../../model/index'

function gacMetaServices(req, res) {
  const resData = DefaultDataModel({
    "options": [{
      "name": "Central Control",
      "description": "中央控制域",
      "id": 1,
      "children": [{
        "name": "Cloud Service Management In Vehicle",
        "description": "包含远程控制、远程诊断、OTA、大数据、软件付费管理等相关功能在车端的逻辑",
        "id": 23,
        "children": [{
          "name": "PlatService_AirConditionerService",
          "description": "空调控制",
          "id": 120,
          "children": [{
            "name": "RR_CtrlAirConditionerLv",
            "description": "控制空调风量【演示数据，请勿修改】",
            "id": 380,
            "children": null
          }]
        }, {
          "name": "PlatService_WarningSoundService",
          "description": "设置警示音",
          "id": 1057,
          "children": [{
            "name": "RR_CtrlWarningSound",
            "description": "设置警示音开启状态",
            "id": 460,
            "children": null
          }]
        }, {
          "name": "PlatService_WarningLightService",
          "description": "设置警示灯",
          "id": 1058,
          "children": [{
            "name": "RR_CtrlWarningLight",
            "description": "设置警示灯开启状态",
            "id": 461,
            "children": null
          }]
        }]
      }, {
        "name": "Interior Light Control",
        "description": "包含车内灯光控制，包括室内氛围灯点亮逻辑控制、氛围灯音乐律动控制，前后顶灯、行李箱灯、门饰板礼貌\n灯、手套箱灯、化妆镜灯、开关背光灯、开关指示灯、足灯等内部灯光的逻辑控制",
        "id": 2,
        "children": [{
          "name": "PlatService_LightStatusService",
          "description": "氛围灯控制",
          "id": 122,
          "children": [{
            "name": "RR_CtrlLightStatus",
            "description": "控制氛围灯开关【演示数据，请勿修改】",
            "id": 382,
            "children": null
          }]
        }, {
          "name": "PlatService_AromaService",
          "description": "香氛控制",
          "id": 121,
          "children": [{
            "name": "RR_CtrlAroma",
            "description": "控制香氛开关【演示数据，请勿修改】",
            "id": 381,
            "children": null
          }]
        }]
      }, {
        "name": "Power Window Control",
        "description": "包括电动车窗升降、车窗禁止和指示灯、车窗未关提醒、防夹和标定参数管理等功能",
        "id": 6,
        "children": [{
          "name": "PlatService_WindowStatusService",
          "description": "车窗",
          "id": 125,
          "children": [{
            "name": "RR_CtrlWindowPosition",
            "description": "控制车窗状态【演示数据，请勿修改】",
            "id": 386,
            "children": null
          }, {
            "name": "RR_RteCtlWindowControlOn",
            "description": "远程开窗",
            "id": 451,
            "children": null
          }, {
            "name": "RR_RteCtlWindowControlOff",
            "description": "远控车窗关(4门)",
            "id": 452,
            "children": null
          }]
        }]
      }]
    }, {
      "name": "Infotainment",
      "description": "信息娱乐域11信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信息娱乐域信",
      "id": 7,
      "children": [{
        "name": "Audio Management",
        "description": "麦克风、扬声器、AVAS、外置功放交互、音源仲裁、音效、ESE/ANC/ICC等",
        "id": 42,
        "children": [{
          "name": "PlatService_PlatService_Dialog",
          "description": "弹框服务",
          "id": 1060,
          "children": [{
            "name": "RR_ShowDialog",
            "description": "弹框提示、支持自定义按键名称处理",
            "id": 377,
            "children": null
          }, {
            "name": "RR_StartVR",
            "description": "",
            "id": 767,
            "children": null
          }]
        }]
      }]
    }],
    "signals": [],
    "services": [{
      "name": "RR_CtrlAirConditionerLv",
      "id": 380,
      "identifier": "RR_CtrlAirConditionerLv",
      "description": "控制空调风量【演示数据，请勿修改】",
      "inputData": [{
        "identifier": "airLv_IN",
        "name": "airLv_IN",
        "category": "Integer",
        "id": 1644199334704,
        "memberList": [{
          "id": 1643355914506,
          "name": "Int_airLv_IN",
          "description": "空调风量【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint16",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }],
      "outputData": [{
        "identifier": "airLv_OUT",
        "name": "airLv_OUT",
        "category": "Boolean",
        "id": 1644199334705,
        "memberList": [{
          "id": 1643355914507,
          "name": "Boolean_airLv_OUT",
          "description": "空调设置是否成功【演示数据，请勿修改】",
          "category": "Boolean",
          "baseDataType": "boolean",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "接收到数据成功",
            "key": "True"
          }]
        }]
      }]
    }, {
      "name": "RR_CtrlWarningSound",
      "id": 460,
      "identifier": "RR_CtrlWarningSound",
      "description": "设置警示音开启状态",
      "inputData": [{
        "identifier": "warningSound_IN",
        "name": "warningSound_IN",
        "category": "Integer",
        "id": 1644199334879,
        "memberList": [{
          "id": 1643355914603,
          "name": "Int_warningSound_IN",
          "description": "设置警示音状态：高频、低频、关闭",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "关闭",
            "key": "0x0"
          }, {
            "name": "高频",
            "key": "0x1"
          }, {
            "name": "低频",
            "key": "0x2"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "warningSound_OUT",
        "name": "warningSound_OUT",
        "category": "Boolean",
        "id": 1644199334880,
        "memberList": [{
          "id": 1643355914604,
          "name": "Boolean_warningSound_OUT",
          "description": "设置警示音结果状态返回",
          "category": "Boolean",
          "baseDataType": "boolean",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "控制警示音成功 ",
            "key": "true"
          }, {
            "name": "控制警告音失败",
            "key": "false"
          }]
        }]
      }]
    }, {
      "name": "RR_CtrlWarningLight",
      "id": 461,
      "identifier": "RR_CtrlWarningLight",
      "description": "设置警示灯开启状态",
      "inputData": [{
        "identifier": "warningLight_IN",
        "name": "warningLight_IN",
        "category": "Integer",
        "id": 1644199334881,
        "memberList": [{
          "id": 1643355914605,
          "name": "Int_warningLight_IN",
          "description": "设置警示灯状态：高频、低频、关闭",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "关闭",
            "key": "0x0"
          }, {
            "name": "高频 ",
            "key": "0x1"
          }, {
            "name": "低频",
            "key": "0x2"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "warningLight_OUT",
        "name": "warningLight_OUT",
        "category": "Boolean",
        "id": 1644199334882,
        "memberList": [{
          "id": 1643355914606,
          "name": "Boolean_warningLight_OUT",
          "description": "设置警示灯结果状态返回",
          "category": "Boolean",
          "baseDataType": "boolean",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "控制警示灯成功",
            "key": "true"
          }, {
            "name": "控制警告灯失败",
            "key": "false"
          }]
        }]
      }]
    }, {
      "name": "RR_CtrlLightStatus",
      "id": 382,
      "identifier": "RR_CtrlLightStatus",
      "description": "控制氛围灯开关【演示数据，请勿修改】",
      "inputData": [{
        "identifier": "LightStatus_IN",
        "name": "LightStatus_IN",
        "category": "Integer",
        "id": 1644199334708,
        "memberList": [{
          "id": 1643355914509,
          "name": "Int_LightStatus_IN",
          "description": "设置氛围灯状态【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "开启",
            "key": "true"
          }, {
            "name": "关闭",
            "key": "false"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "LightStatus_OUT",
        "name": "LightStatus_OUT",
        "category": "Integer",
        "id": 1644199334709,
        "memberList": [{
          "id": 1643355914510,
          "name": "Int_LightStatus_OUT",
          "description": "氛围灯设置是否成功【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "接收到数据成功",
            "key": "True"
          }]
        }]
      }]
    }, {
      "name": "RR_CtrlAroma",
      "id": 381,
      "identifier": "RR_CtrlAroma",
      "description": "控制香氛开关【演示数据，请勿修改】",
      "inputData": [{
        "identifier": "aromaState_IN",
        "name": "aromaState_IN",
        "category": "Boolean",
        "id": 1644199334706,
        "memberList": [{
          "id": 1643355914508,
          "name": "Boolean_aromaState_IN",
          "description": "设置香氛状态【演示数据，请勿修改】",
          "category": "Boolean",
          "baseDataType": "boolean",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "开启",
            "key": "true"
          }, {
            "name": "关闭",
            "key": "false"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "aromaState_OUT",
        "name": "aromaState_OUT",
        "category": "Boolean",
        "id": 1644199334707,
        "memberList": [{
          "id": 1643355914529,
          "name": "Boolean_aromaState_OUT",
          "description": "香氛设置是否成功【演示数据，请勿修改】",
          "category": "Boolean",
          "baseDataType": "boolean",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "接收到数据成功",
            "key": "True"
          }]
        }]
      }]
    }, {
      "name": "RR_CtrlWindowPosition",
      "id": 386,
      "identifier": "RR_CtrlWindowPosition",
      "description": "控制车窗状态【演示数据，请勿修改】",
      "inputData": [{
        "identifier": "WLCtlObject",
        "name": "WLCtlObject",
        "category": "Struct",
        "id": 1644199334713,
        "memberList": [{
          "id": 1643355914519,
          "name": "FLCtl",
          "description": "前左窗",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }, {
          "id": 1643355914520,
          "name": "FRCtl",
          "description": "前右窗",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }, {
          "id": 1643355914521,
          "name": "RLCtl",
          "description": "后左窗",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }, {
          "id": 1643355914522,
          "name": "RRCtl",
          "description": "后右窗",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }, {
        "identifier": "WLCtlType",
        "name": "WLCtlType",
        "category": "Integer",
        "id": 1644199334714,
        "memberList": [{
          "id": 1643355914514,
          "name": "Int_WLCtlType",
          "description": "车窗操作类型【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "Window stop",
            "key": "0x0"
          }, {
            "name": "Manual up",
            "key": "0x1"
          }, {
            "name": " Auto up",
            "key": "0x2"
          }, {
            "name": " Manual down",
            "key": "0x3"
          }, {
            "name": "Auto down",
            "key": "0x4"
          }, {
            "name": "Set Targetget Position",
            "key": "0x6"
          }, {
            "name": "Window Ventilation Mode",
            "key": "0x7"
          }, {
            "name": "not used",
            "key": "0x8"
          }]
        }]
      }, {
        "identifier": "WLCtlTargetPos",
        "name": "WLCtlTargetPos",
        "category": "Integer",
        "id": 1644199334715,
        "memberList": [{
          "id": 1643355914515,
          "name": "Int_WLCtlTargetPos",
          "description": "车窗操作目标位置【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "0",
          "physicalMax": "200",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }, {
        "identifier": "WLCtlArbType",
        "name": "WLCtlArbType",
        "category": "Integer",
        "id": 1644199334716,
        "memberList": [{
          "id": 1643355914516,
          "name": "Int_WLCtlArbType",
          "description": "车窗仲裁方式【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "Replace",
            "key": "0x0"
          }, {
            "name": "Break",
            "key": "0x1"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "ReturnCode",
        "name": "ReturnCode",
        "category": "Integer",
        "id": 1644199334717,
        "memberList": [{
          "id": 1643355914517,
          "name": "Int_ReturnCode",
          "description": "操作车窗结果返回值【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint16",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "成功",
            "key": "0x1"
          }, {
            "name": "失败",
            "key": "0x0"
          }]
        }]
      }]
    }, {
      "name": "RR_RteCtlWindowControlOn",
      "id": 451,
      "identifier": "RR_RteCtlWindowControlOn",
      "description": "远程开窗",
      "inputData": [{
        "identifier": "RteCtlWindowControlOn",
        "name": "RteCtlWindowControlOn",
        "category": "Struct",
        "id": 1644199334866,
        "memberList": [{
          "id": 1643355914594,
          "name": "RteCtlWindowControl",
          "description": "车窗（4门）开启百分比",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "0",
          "physicalMax": "100",
          "initialValue": "50",
          "unit": "",
          "specs": null
        }, {
          "id": 1643355914595,
          "name": "RequestID",
          "description": "request ID",
          "category": "Struct",
          "baseDataType": "uint64",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }],
      "outputData": [{
        "identifier": "RteCtlWindowControlOnResult",
        "name": "RteCtlWindowControlOnResult",
        "category": "Enumeration",
        "id": 1644199334867,
        "memberList": [{
          "id": 1643355914596,
          "name": "Enum_RteCtlResultType1",
          "description": "同步返回结果",
          "category": "Enumeration",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "Success",
            "key": "0x0"
          }, {
            "name": "Fail_UsageModeNotSupport",
            "key": "0x10"
          }, {
            "name": "Fail_VehModeNotSupport",
            "key": "0x11"
          }, {
            "name": "Fail_FunctionCantBeUsed",
            "key": "0x12"
          }, {
            "name": "Fail_InputOutOfRange",
            "key": "0x13"
          }, {
            "name": "Fail_ForcedState",
            "key": "0x14"
          }, {
            "name": "Fail_authention",
            "key": "0x15"
          }, {
            "name": "Fail_LowVolt",
            "key": "0x16"
          }, {
            "name": "Fail_LowBatt",
            "key": "0x17"
          }, {
            "name": "Fail_vehicleSpeed",
            "key": "0x18"
          }, {
            "name": "Fail_highVoltfailed",
            "key": "0x19"
          }, {
            "name": "Fail_Powerlimited",
            "key": "0x1A"
          }, {
            "name": "Fail_Others",
            "key": "0x1B"
          }]
        }]
      }]
    }, {
      "name": "RR_RteCtlWindowControlOff",
      "id": 452,
      "identifier": "RR_RteCtlWindowControlOff",
      "description": "远控车窗关(4门)",
      "inputData": [{
        "identifier": "RteCtlWindowControlOff",
        "name": "RteCtlWindowControlOff",
        "category": "Struct",
        "id": 1644199334868,
        "memberList": [{
          "id": 1643355914594,
          "name": "RteCtlWindowControl",
          "description": "车窗（4门）开启百分比",
          "category": "Struct",
          "baseDataType": "uint8",
          "physicalMin": "0",
          "physicalMax": "100",
          "initialValue": "50",
          "unit": "",
          "specs": null
        }, {
          "id": 1643355914595,
          "name": "RequestID",
          "description": "request ID",
          "category": "Struct",
          "baseDataType": "uint64",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }],
      "outputData": [{
        "identifier": "RteCtlWindowControlOffResult",
        "name": "RteCtlWindowControlOffResult",
        "category": "Enumeration",
        "id": 1644199334869,
        "memberList": [{
          "id": 1643355914596,
          "name": "Enum_RteCtlResultType1",
          "description": "同步返回结果",
          "category": "Enumeration",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "Success",
            "key": "0x0"
          }, {
            "name": "Fail_UsageModeNotSupport",
            "key": "0x10"
          }, {
            "name": "Fail_VehModeNotSupport",
            "key": "0x11"
          }, {
            "name": "Fail_FunctionCantBeUsed",
            "key": "0x12"
          }, {
            "name": "Fail_InputOutOfRange",
            "key": "0x13"
          }, {
            "name": "Fail_ForcedState",
            "key": "0x14"
          }, {
            "name": "Fail_authention",
            "key": "0x15"
          }, {
            "name": "Fail_LowVolt",
            "key": "0x16"
          }, {
            "name": "Fail_LowBatt",
            "key": "0x17"
          }, {
            "name": "Fail_vehicleSpeed",
            "key": "0x18"
          }, {
            "name": "Fail_highVoltfailed",
            "key": "0x19"
          }, {
            "name": "Fail_Powerlimited",
            "key": "0x1A"
          }, {
            "name": "Fail_Others",
            "key": "0x1B"
          }]
        }]
      }]
    }, {
      "name": "RR_ShowDialog",
      "id": 377,
      "identifier": "RR_ShowDialog",
      "description": "弹框提示、支持自定义按键名称处理",
      "inputData": [{
        "identifier": "Dialog",
        "name": "Dialog",
        "category": "String",
        "id": 1644199334699,
        "memberList": [{
          "id": 1643355914487,
          "name": "String_Dialog",
          "description": "【演示数据，请勿修改】",
          "category": "String",
          "baseDataType": "UTF-8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }],
      "outputData": [{
        "identifier": "DialogReturnCode",
        "name": "DialogReturnCode",
        "category": "Integer",
        "id": 1644199334700,
        "memberList": [{
          "id": 1643355914488,
          "name": "Int_DialogReturnCode",
          "description": "【演示数据，请勿修改】",
          "category": "Integer",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": null
        }]
      }]
    }, {
      "name": "RR_StartVR",
      "id": 767,
      "identifier": "RR_StartVR",
      "description": "语音与客户交互服务，播报内容与客户选项",
      "inputData": [{
        "identifier": "VRProtocol",
        "name": "VRProtocol",
        "category": "String",
        "id": 1644199335343,
        "memberList": [{
          "id": 1643355921274,
          "name": "String_VRProtocol",
          "description": "语音信息字符串",
          "category": "String",
          "baseDataType": "UTF-8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "VR本次服务调用id",
            "key": "vrid"
          }, {
            "name": "VR播报的title",
            "key": "title"
          }, {
            "name": "VR播报的content",
            "key": "content"
          }, {
            "name": "{}",
            "key": "extra"
          }, {
            "name": "0",
            "key": "type"
          }, {
            "name": " [     {       \"id\": \"选择项1的id\",       \"title\": \"选择项1的文字\"     },     {       \"id\": \"选择项2的id\",       \"",
            "key": "buttons"
          }]
        }]
      }],
      "outputData": [{
        "identifier": "VRReturnCode",
        "name": "VRReturnCode",
        "category": "Enumeration",
        "id": 1644199335344,
        "memberList": [{
          "id": 1643355921275,
          "name": "Enum_VRReturnCode",
          "description": "语音调用反馈",
          "category": "Enumeration",
          "baseDataType": "uint8",
          "physicalMin": "",
          "physicalMax": "",
          "initialValue": "",
          "unit": "",
          "specs": [{
            "name": "Excutalbe",
            "key": "0x0"
          }, {
            "name": "OtherReqWork",
            "key": "0x1"
          }, {
            "name": "Error_Timeout",
            "key": "0x2"
          }, {
            "name": "Error_ServiceUnavailable",
            "key": "0x3"
          }, {
            "name": "Error_CurrentAbnormal",
            "key": "0x5"
          }, {
            "name": "Error_VoltageAbnormal",
            "key": "0x6"
          }, {
            "name": "Error_DeviceAbnormal",
            "key": "0x7"
          }, {
            "name": "reverse",
            "key": "0x08-0x0F"
          }, {
            "name": "可自定义",
            "key": "0x10-0xFF"
          }]
        }]
      }]
    }]
  })
  res.json(resData)
}

const ResponseList = [
  {
    path: `${Config.baseURL}/api/object/gacMetaServices`,
    method: 'get',
    fun: gacMetaServices,
  }
]

export default ResponseList
